# FS error not documented?

**URL:** <https://forum.microej.com/t/fs-error-not-documented/840>\
**Category:** Technical Support\
**Created:** [April 6, 2021, 12:09pm UTC](https://forum.microej.com/t/fs-error-not-documented/840 "2021-04-06T12:09:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![p.calamarino](https://forum.microej.com/letter_avatar_proxy/v4/letter/p/ea5d25/32.png) [@p.calamarino](https://forum.microej.com/u/p.calamarino)\
**Post date:** [April 6, 2021, 12:09pm UTC](https://forum.microej.com/t/fs-error-not-documented/840/1 "2021-04-06T12:09:02Z")

</div>

Hello MicroEJ team,

I implemented the File System library on my platform and ran the FS testsuite from the PlatformQualificationTools on github.

I’m encountering an error (-12) but it doesn’t seem to be documented in the error messages on this page: [FS — MicroEJ Documentation](https://docs.microej.com/en/latest/PlatformDeveloperGuide/appendix/javalibs/fs.html?highlight=FS#error-messages)

Here is my testsuite log:

```
[testsuite:javaTestsuite] [traceAnalyzer:socketTraceAnalyzer] **TestWriteBigFile
[testsuite:javaTestsuite] [traceAnalyzer:socketTraceAnalyzer] Exception in thread "main" ej.sni.NativeIOException: Creation failed (error code=-12)
[testsuite:javaTestsuite] [traceAnalyzer:socketTraceAnalyzer] at java.io.File.createFileExclusively(line:1976)
[testsuite:javaTestsuite] [traceAnalyzer:socketTraceAnalyzer] at java.io.File.createNewFile(line:823)
[testsuite:javaTestsuite] [traceAnalyzer:socketTraceAnalyzer] at com.microej.fs.tests.integration.TestFile.TestWriteBigFile(line:48)
[testsuite:javaTestsuite] [traceAnalyzer:socketTraceAnalyzer] at com.microej.fs.tests.integration.TestFile.main(line:31)
[testsuite:javaTestsuite] [traceAnalyzer:socketTraceAnalyzer] at java.lang.MainThread.run(line:850)
[testsuite:javaTestsuite] [traceAnalyzer:socketTraceAnalyzer] at java.lang.Thread.runWrapper(line:464)
[testsuite:javaTestsuite] [echo] Execution of script 'C:\git\bsp\projects\microej\scripts\run.bat' done.
[testsuite:javaTestsuite] [traceAnalyzer:socketTraceAnalyzer] at java.lang.Thread.callWrapper(line:449)
[testsuite:javaTestsuite] [traceAnalyzer:socketTraceAnalyzer] Error : com.microej.fs.tests.integration.TestFile TestWriteBigFile
[testsuite:javaTestsuite] [traceAnalyzer:socketTraceAnalyzer] ( == false ) , expected true

```

Thanks for your help,

Philip

---

<div class="post-metadata">

**Author:** ![anselme.gazard](https://forum.microej.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@anselme.gazard](https://forum.microej.com/u/anselme.gazard)\
**Post date:** [April 6, 2021, 2:48pm UTC](https://forum.microej.com/t/fs-error-not-documented/840/2 "2021-04-06T14:48:39Z")

</div>

Hi Philip,

When an ej.sni.NativeIOException is thrown, the error code can be either an error code defined in the FS foundation library or an error code defined in the native FS library. All the error codes mentioned in this documentation are only defined in the FS foundation library.

In your case, the error code -12 probably comes from the native FS library on which you ported the FS foundation library.

Could you please check in your native FS library if this error code exists and what it corresponds to?

Anselme G.

---

<div class="post-metadata">

**Author:** ![p.calamarino](https://forum.microej.com/letter_avatar_proxy/v4/letter/p/ea5d25/32.png) [@p.calamarino](https://forum.microej.com/u/p.calamarino)\
**Post date:** [April 7, 2021, 3:53pm UTC](https://forum.microej.com/t/fs-error-not-documented/840/3 "2021-04-07T15:53:07Z")

</div>

Indeed I found that the error was in my implementation and found what was actually the underlying error.

Thanks Anselme !
